//
//  JwBaseBackController.m
//  JwPack
//
//  Created by 陈警卫 on 2022/8/25.
//

#import "JwBaseBackController.h"

@interface JwBaseBackController ()

@end

@implementation JwBaseBackController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.jw_backBarImg = [[[UIImage jw_imageSkinWithName:GV_JwFrame_backImageName]
                           jw_imageByTintColor:kJwColorHexString(GV_JwFrame_navBarTintColorString)] jw_renderOriginal];
    self.jw_backBarItem = [[UIBarButtonItem alloc] initWithImage:self.jw_backBarImg
                                                           style:(UIBarButtonItemStyleDone)
                                                          target:self
                                                          action:@selector(jw_backBarItemAction:)];
    self.navigationItem.leftBarButtonItem = self.jw_backBarItem;
}

- (void)jw_skinerBlockAction:(id)sender {
    [super jw_skinerBlockAction:sender];
    self.jw_backBarImg = [UIImage jw_imageSkinWithName:GV_JwFrame_backImageName];
}

- (void)jw_backBarItemAction:(UIBarButtonItem *)barItem {
    [self.navigationController popViewControllerAnimated:YES];
}


@end
